package com.sdb.docter.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.sdb.docter.mapper.DocterMapper;
import com.sdb.docter.domain.Docter;
import com.sdb.docter.service.IDocterService;

/**
 * 医生管理Service业务层处理
 * 
 * @author yyh
 * @date 2024-11-19
 */
@Service
public class DocterServiceImpl implements IDocterService 
{
    @Autowired
    private DocterMapper docterMapper;

    /**
     * 查询医生管理
     * 
     * @param dcId 医生管理主键
     * @return 医生管理
     */
    @Override
    public Docter selectDocterByDcId(Long dcId)
    {
        return docterMapper.selectDocterByDcId(dcId);
    }

    /**
     * 查询医生管理列表
     * 
     * @param docter 医生管理
     * @return 医生管理
     */
    @Override
    public List<Docter> selectDocterList(Docter docter)
    {
        return docterMapper.selectDocterList(docter);
    }

    /**
     * 新增医生管理
     * 
     * @param docter 医生管理
     * @return 结果
     */
    @Override
    public int insertDocter(Docter docter)
    {
        return docterMapper.insertDocter(docter);
    }

    /**
     * 修改医生管理
     * 
     * @param docter 医生管理
     * @return 结果
     */
    @Override
    public int updateDocter(Docter docter)
    {
        return docterMapper.updateDocter(docter);
    }

    /**
     * 批量删除医生管理
     * 
     * @param dcIds 需要删除的医生管理主键
     * @return 结果
     */
    @Override
    public int deleteDocterByDcIds(Long[] dcIds)
    {
        return docterMapper.deleteDocterByDcIds(dcIds);
    }

    /**
     * 删除医生管理信息
     * 
     * @param dcId 医生管理主键
     * @return 结果
     */
    @Override
    public int deleteDocterByDcId(Long dcId)
    {
        return docterMapper.deleteDocterByDcId(dcId);
    }
}
